<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
    <script src="./js/jquery-3.1.1.js"></script>
    <link rel="stylesheet" href="./css/index.css">
    <link rel="stylesheet" href="./libs/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="./font/nav_icon/iconfont.css">
    <link rel="stylesheet" href="./font/font-awesome-4.7.0/css/font-awesome.min.css">
    <script src="./libs/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
    <script src="./js/index/index.js"></script>

</head>

<body>
    <!-- 顶部导航 -->
    <div class="panel_top">
        <div class="logo">
            维修调度管理系统
        </div>

        <div class="register_box clear">
            <img src="./img/icon-test.png" alt="">
            <span>
                <!-- 张三 -->
            </span>
        </div>
    </div>


    <!-- 侧边导航 -->
    <div class="panel-group panel_nav">
        <!-- 导航一 -->
        <div class="panel">
            <div id="header1" class="nav_padding" data-toggle="collapse" data-target="#sub1"
                data-parent="panelContainer">
                <span class="iconfont icon-cangku3"></span>
                <a href="./html/kongzhitai.html " target="myiframe" id="btn">控制台</a>

            </div>
        </div>

        <!-- 导航二 -->
        <div class="panel">
            <div id="header2" class="nav_padding" data-toggle="collapse" data-target="#sub2"
                data-parent="panelContainer">
                <span class="iconfont icon-hezi"></span>
                <a href="#">装备管理</a>

            </div>
            <div id="sub2" class="collapse panel-collapse">
                <div>
                    <ul class="nav">
                        <li>
                            <a href="./html/zhuangbeifenlei.html"
                                target="myiframe"><span>装备分类</span></a>
                        </li>
                        <li>
                            <a href="./html/EquipmentManagement.html" target="myiframe"><span>装备管理</span></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- 导航三 -->
        <div class="panel">
            <div id="header3" class="nav_padding" data-toggle="collapse" data-target="#sub3"
                data-parent="panelContainer">
                <span class="iconfont icon-cangku"></span>
                <a href="#">仓库管理</a>

            </div>
            <div id="sub3" class="collapse panel-collapse">
                <div>
                    <ul class="nav">
                        <li>
                            <a href="./html/cangKuGuanLi/huoWeiXinXi.html" target="myiframe"><span>货位信息</span></a>
                        </li>
                        <li>
                            <a href="./html/cangKuGuanLi/qiCaiFenLei.html" target="myiframe"><span>器材分类</span></a>
                        </li>
                        <li>
                            <a href="./html/cangKuGuanLi/qiCaiGuanLi.html" target="myiframe"><span>器材管理</span></a>
                        </li>
                        <li>
                            <a href="./html/cangKuGuanLi/ruKuGuanLi.html" target="myiframe"><span>入库管理</span></a>
                        </li>
                        <li>
                            <a href="./html/cangKuGuanLi/buMenLingLiao.html" target="myiframe"><span>部门领料</span></a>
                        </li>
                        <li>
                            <a href="./html/cangKuGuanLi/buMenTuiLiao.html" target="myiframe"><span>部门退料</span></a>
                        </li>
                        <li>
                            <a href="./html/cangKuGuanLi/kuCunPanDian.html" target="myiframe"><span>库存盘点</span></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- 导航四 -->
        <div class="panel">
            <div id="header4" class="nav_padding" data-toggle="collapse" data-target="#sub4"
                data-parent="panelContainer">
                <span class="iconfont icon-UI_icon_gongjuxiang"></span>
                <a href="#">维修管理</a>

            </div>
            <div id="sub4" class="collapse panel-collapse">
                <div>
                    <ul class="nav">
                        <li>
                            <a href="./html/weixiujihua.html" target="myiframe"><span>维修计划</span></a>
                        </li>
                        <li>
                            <a href="./html/weixiujilu.html" target="myiframe"><span>维修记录</span></a>
                        </li>
                        <li>
                            <a href="./html/weixiudangan.html" target="myiframe"><span>维修档案</span></a>
                        </li>
                        <li>
                            <a href="./html/weixiuzhiliang.html" target="myiframe"><span>维修质量</span></a>
                        </li>
                        <li>
                            <a href="./html/weixiujingfei.html" target="myiframe"><span>维修经费</span></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- 导航五 -->
        <div class="panel">
            <div id="header5" class="nav_padding" data-toggle="collapse" data-target="#sub5"
                data-parent="panelContainer">
                <span class="iconfont icon-renyuanzhuangtai"></span>
                <a href="#">人员管理</a>
            </div>
            <div id="sub5" class="collapse panel-collapse">
                <div>
                    <ul class="nav">
                        <li>
                            <a href="./html/renyuanxinxi.html" target="myiframe"><span>人员信息</span></a>
                        </li>
                        <li>
                            <a href="./html/kaoqinguanli.html" target="myiframe"><span>考勤管理</span></a>
                        </li>
                        <li>
                            <a href="./html/weixiugongdan.html" target="myiframe"><span>维修工单</span></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- 导航六 -->
        <div class="panel">
            <div id="header6" class="nav_padding" data-toggle="collapse" data-target="#sub6"
                data-parent="panelContainer">
                <span class="iconfont icon-yingyongfangfaziliao"></span>
                <a href="#">技术资料</a>
            </div>
            <div id="sub6" class="collapse panel-collapse">
                <div>
                    <ul class="nav">
                        <li>
                            <a href="./html/jszl_dataClass.html" target="myiframe"><span>资料类型</span></a>
                        </li>
                        <li>
                            <a href="./html/jszl_dataManagement.html" target="myiframe"><span>资料管理</span></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- 导航七 -->
        <div class="panel">
            <div id="header7" class="nav_padding" data-toggle="collapse" data-target="#sub7"
                data-parent="panelContainer">
                <span class="iconfont icon-wenxianshuji"></span>
                <a href="#">规章制度</a>
            </div>
            <div id="sub7" class="collapse panel-collapse">
                <div>
                    <ul class="nav">
                        <li>
                            <a href="./html/gzzd_regulationsType.html" target="myiframe"><span>法规类型</span></a>
                        </li>
                        <li>
                            <a href="./html/gzzd_codeAdministration.html" target="myiframe"><span>法规管理</span></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- 导航八 -->
        <div class="panel">
            <div id="header8" class="nav_padding" data-toggle="collapse" data-target="#sub8"
                data-parent="panelContainer">
                <span class="iconfont icon-shezhi"></span>
                <a href="#">系统管理</a>
            </div>
            <div id="sub8" class="collapse panel-collapse">
                <div>
                    <ul class="nav">
                        <li>
                            <a href="./html/xtgl_userManagement.html" target="myiframe"><span>用户管理</span></a>
                        </li>
                        <li>
                            <a href="./html/xtgl_roleManagement.html" target="myiframe"><span>角色管理</span></a>
                        </li>
                        <li>
                            <a href="./html/xtgl_systemSettings.html" target="myiframe"><span>系统管理</span></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="con_box">
        <div class="con_box_wai">
            <iframe name="myiframe" width='100%' height="1000px" frameborder="0" id="iframe"></iframe>
        </div>
    </div>

        <!-- 登录提示弹框 -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title" id="myModalLabel">温馨提示</h4>
                    </div>
                    <div class="modal-body">您还没有登录，请先登录</div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary queding">确定</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal -->
        </div>


    <script>

        // 用户登录
        $(document).ready(function () {
            window.parent.document.getElementById('btn').click()
        });



        let loginState = true;
        let user = JSON.parse(sessionStorage.getItem('user'));
        // let userName = document.querySelector('.register_box>span')
        // console.log(user);

        if (user == null) {
            $('#myModal').modal('show')
        }else{
            $('.register_box>span').text(user.username)
        }
        $('.queding').click(function () {
            location.href = './login.html'
        })
    </script>
</body>

</html>